/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.camara.jersey.Ws;

import com.camara.jersey.Dao.UserDao;
import com.camara.jersey.Model.User;
import java.util.ArrayList;
import java.util.List;
import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Context;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Request;
import javax.ws.rs.core.UriInfo;

@Path("/user")
public class UserResource {

    @Context
    UriInfo uriInfo;
    @Context
    Request request;

    // Return the list of todos for applications
    @GET
    @Produces({MediaType.APPLICATION_JSON})
    public List<User> getUsers() {
        List<User> list = new ArrayList<User>();
       // list=UserDao.instance.getUsers();
        User user1 = new User (100,"atcamara","passer");
        list.add(user1);
        System.out.println ("+++++++++++++++++++++++++++++++++++++"+list.get(0).getLogin());
        return list;
    }

}
